html {
    min-width: 1200px;
    overflow-x: auto;
}

a {
    text-decoration: none;
    color: black;
}

button {
    cursor: pointer;
}

/* 通用导航栏样式 --------------------------------------------------------------*/
@media (max-width: 1400px) {
    .icon-title h1 {
        display: none;
    }
}

#main-nav {
    top: 0;
    position: fixed;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    opacity: 1;
    transition-duration: 500ms;
    z-index: 99;
    min-width: 1200px;
}

#main-nav.scrolled {
    transition-duration: 500ms;
    height: 65px;
    background-color: rgb(100, 203, 255);
}

/* 导航栏左侧：LOGO-标题部分 */
.icon-title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.icon-title img {
    position: relative;
    top: 4px;
    margin: 0 5px;
}

.icon-title a {
    text-decoration: none;
    color: black;
    margin: 0;
}

/* 导航栏中部： 页面链接部分*/
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links img {
    position: relative;
    top: 3px;
}

.nav-link a {
    text-decoration: none;
    font-size: 20px;
    color: black;
    margin: 12px;
}

.nav-link {
    display: flex;
    justify-content: flex-start;
}

.nav-link:hover {
    transition: 0.25s;
    color: rgb(14, 94, 155);
    transform: scale(1.1);
}

.nav-link:hover .drop-menu {
    transition-delay: 0.25s;
    visibility: visible;
    opacity: 0.7;
    top: 35px;
    transition: 0.5s ease;
}

/* 导航栏下拉菜单 */
.drop-menu {
    position: absolute;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    margin: 5px;
    top: 0px;
    opacity: 0;
    transition: 0.5s ease;
}

.drop-menu a {
    font-size: 14px;
    width: max-content;
    margin: 5px;
}

.drop-menu a:hover {
    color: rgb(100, 203, 255);
}

/* 导航栏右侧： 时间显示部分 */
.time-show {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-show p {
    margin: 3px;
}

/* 登录/注册按钮 */
.register-login button {
    border: solid Black 2px;
    border-radius: 5px;
    background-color: transparent;
    font-size: 20px;
}

.register-login button:hover {
    cursor: pointer;
    transition: 0.25s;
    scale: 1.1;
}

/* ------------------------------------------------------------------------------- */

body {
    margin: 0;
}

/* 通用banner图样式 ----------------------------------------------------------------*/
.banner-box {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-box img {
    width: 100%;
    top: 0;
    margin: 0px;
}

.slogan {
    position: absolute;
    color: white;
    font-size: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    top: 45%;
    text-align: center;
    margin: 0;
}

.cursor::after {
    content: '_';
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ------------------------------------------------------------------------------- */
.main-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/* 通用卡片样式(主页栏目链接) ----------------------------------------------------------*/
.display-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 90%;
    justify-self: center;
}

.display-box-litter {
    width: 65%;
}

.display-box-litter p {
    margin: 0 10px;
}

.display-card {
    border: none;
    margin: 30px;
    border-radius: 25px;
    box-shadow: 0px 0px 56px 11px rgba(0, 0, 0, 0.1);
    display: flex;
    height: 200px;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid rgb(203, 237, 243);
    scale: 1.0;
    transition: 0.25s;
    /* min-width: 340px; */
}

.display-card:hover {
    transition: 0.25s;
    scale: 1.1;
}

.display-card img {
    justify-items: center;
    /* width: 100px;
    height: 100px; */
    margin: 10px;
}

.display-card h1 {
    margin: 0;
    margin: 10px;
}

.display-box p {
    text-decoration: none;
    margin: 10px;
}

/* ---------------------------------------------------------------------------------- */

/* 通用页脚样式 -----------------------------------------------------------------------*/
.main-footer {
    background-color: rgb(235, 235, 235);
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.footer-lists {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 60%;
    padding: 50px 0;
}

.footer-list dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-list dd {
    margin: 0;
}

.footer-list a:hover, .friend-link:hover {
    color: rgb(100, 203, 255);
}

.friend-link {
    text-decoration: underline;
}

.footer-separation {
    background-color: grey;
    width: 3px;
    margin: 60px 0;
}

.other-info {
    align-self: center;
}

.copyright-info {
    background-color: rgb(182, 182, 182);
    text-align: center;
    padding: 8px;
}

/* ------------------------------------------------------------------------------------ */

/* 登录注册窗口样式------------------------------------------------------------------------------------ */
#closeRegisterModal,
#closeLoginModal {
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

#closeRegisterModal:hover {
    background-color: rgb(211, 202, 255);
}

#regUsername,
#regEmail,
#regPassword,
#loginIdentifier,
#loginPassword {
    width: 85%;
}

#switchToRegister,
#switchToLogin {
    text-decoration: none;
    border: none;
    background-color: transparent;
    border-radius: 8px;
}

#switchToRegister:hover,
#switchToLogin:hover {
    text-decoration: underline;
}

#registerForm label,
#loginForm label {
    margin-bottom: 5px;
}

/* ------------------------------------------------------------------------------------ */

#closeNotification {
    display: none;
}